package com.event.service;

import com.event.pojo.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

/**
 * <p>
 * 帖子 服务类
 * </p>
 *
 * @author 孤雏
 * @since 2021-08-09
 */
public interface PostService extends IService<Post> {

    List<Post> selectPost(Post post);

    List<Post> selectPostByView(Post post,String flag);

    boolean deletePost(Long postId);

    int insertPost(Post post);

    int updatePost(Post post);

    List<Post> selectPostByPostTitle(String postTitle,String flag);

    List<Post> selectPostByUptime(Post post,String flag);
}
